where and when did mary shelley write frankenstein?