The formation of urea in space I. Ion-molecule, neutral-neutral, and radical gas-phase reactions