New procedure to calculate the Hansen solubility parameters of polymers