Ghostly exhibition explores 250 years of gothic literature