Adiabatic Invariants for Linear Hamiltonian Systems