Versal Deformations and Normal Forms for Reversible and Hamiltonian Linear Systems