Monolithic oxide–metal composite thermoelectric generators for energy harvesting