Optimal participation of an electric vehicle aggregator in day-ahead energy and reserve markets