AI-based method speeds discovery of materials that harvest e