Riccati group invariants of linear hamiltonian systems