Hamiltonian treatment of the spherically symmetric einstein-Yang-Mills system