Economic optimization and sensitivity analysis of energy requirements in residential space heating