Quantification of energy flexibility from air conditioning of residential buildings