Forming the tip of a catheter