Efficiency improvement and technology choice for energy and emission reductions of the residential sector