A multilevel window state model based on outdoor environmental conditions that captures behavioural variation at room and apartment levels