Optimization of window solar gain for a building with less cooling load