A dynamical model for study and optimization of solar-earth source heat pump system