Optimization of solar energy exploitation for a neighborhood towards nearly zero energy buildings