Decreasing the environmental impacts of residential buildings: to renovate or to rebuild?