An optimal operating strategy for combined RES-based generators and electric storage systems for load shifting applications