Analytical computation of transient heat transfer and macro-constriction resistance applied to thermal spraying processes