Refurbishment of the residential building stock toward the nearly-zero energy target through the application of the building typology