The discovery that some animals have found ways to feed off the Sun’s energy has led to the intriguing idea that humans could one day create solar-powered nourishment.