Energy and economic optimization of PV hybrid systems to supply buildings HVAC demand : battery modeling and control strategies