Nightmares share genetic risk factors with sleep and psychiatric traits