On dielectric and magnetic relaxation phenomena and vectorial internal degrees of freedom in thermodynamics