Theoretical calculation and machine learning aided design of functional materials for energy conversion