How to make solar energy materials