Optimal operation of hybrid PV-battery system considering grid scheduled blackouts and battery lifetime