Discontinuities in the solar wind associated with sudden geomagnetic impulses and storm commencements