difference between solar energy and thermal energy