Application of a numerical-basis-state method to strong-field excitation and ionization of hydrogen atoms