An Economical Optimization for the Participation of a Residential Microgrid in Flexibility Markets Providing Ancillary Services | IEEE Conference Publication | IEEE Xplore