Energy and comfort: mutual relation between thermal comfort and energy demand in office buildings