Construction of exact invariants of time-dependent linear nonholonomic dynamical systems