Development of a simulation-based controls framework for implementation of control algorithms for complex fenestration systems