How a vaporized Earth might have cooked up the moon