The impact of the energy performance improvement of the historic buildings on the environmental sustainability