Multi-stage optimization flexibility algorithm for demand response in ancillary services. An industrial case study | Publicación