Diffusion pore imaging with generalized temporal gradient profiles.