Quick, bring me the head of a genius Both Haydn and Goya were among the many victims of an era’s rampant mania for skulls