Scattering and stripping of 27.0 MeV deuterons on nitrogen