An application of nonlinear programming techniques to the energy-economic optimization of buildings design