Simulation and control of shading systems for glazed facades