Application of artificial intelligence for prediction, optimization, and control of thermal energy storage systems