Self-energy correction to the hyperfine splitting of the 1 s and 2 s states in hydrogenlike ions