Participation of Grid-Connected Energy Hubs and Energy Distribution Companies in the Day-Ahead Energy Wholesale and Retail Markets Constrained to Network Operation Indices