Automatic determination of solar access and shading of buildings in complex situations. Graphic and analytic approaches