From Mary Shelley, who invented science fiction and modern horror at once, to Gilman’s The Yellow Wallpaper — the women who wrote the genre’s deepest terrors.