Renormalized oscillation theory for Hamiltonian systems