During which period in history did Mary Shelley write Frankenstein, and what were some of its social behavior codes that clashed with her personal life?