Velocity control and staging in laser wakefield accelerators using segmented capillary discharges