Making materials for solar panels