AI-based method speeds discovery of materials that harvest electricity from wasted heat