Daylighting with external shading devices: design and simulation algorithms