Quantitative description and simulation of human behavior in residential buildings