Building-plant interaction: a parameter to optimize the distribution of thermal resistance and heat capacity in external walls of buildings