Characterizing the computational power of energy-based P systems