A tri-level model for optimal management of active distribution networks enabling two-layer local markets | Publicación