Excitation of the hyperfine transitions of atomic hydrogen, deuterium, and ionized helium 3 by Lyman-alpha radiation