Glauber cross sections for arbitrary excitation of ground-state hydrogen by electron and proton impact