Excited-state-threshold resonance effects in 9Be(p,p0)9Be and 9Be(p,n)9B