Analysis of the effects of internal heating and cooling during the rotational molding of plastics