A state-averaged orbital-optimized hybrid quantum–classical algorithm for a democratic description of ground and excited states