Definiteness of quadratic functionals for Hamiltonian and symplectic systems: A survey