Collisional effects in the formation of cold guided beams of polar molecules