A general quantitative diffusion MRI model of water exchange, confinement, and hindrance with arbitrary gradient waveform encoding