An extended irreversible thermodynamic description of dielectric and magnetic relaxation in a thermal and viscous plasma