Spin transfer to Λ and \bar \Lambda hyperons in deep inelastic scattering at HERMES