Energy flexibility in residential buildings clusters