Accommodating the charging of plug-in electric vehicles using energy storage systems integrated with renewable generation and demand side management programs