Analysis of Energy Markets Modeled as Equilibrium Problems with Equilibrium Constraints