Flexibility in energy-efficient public housing as a factor of social. economic and environmental sustainability