Batteries: thermoelectric and photoelectric