Man with ‘sexsomnia’ not guilty of raping woman after judge warns jury in Sydney trial