Microencapsulation of phase change materials for thermal energy storage systems