how Frankenstein was written