Modeling of indoor thermal conditions for comfort control in buildings