Optimization of the glazed surface of a building with reference to its consumption for thermal and lighting purposes