The pomeron in elastic and deep inelastic scattering