Improved phase-matching in a laser wakefield accelerator by variable profile capillary discharge