On the retrivial of velocity gradients from photospheric line asymmetries: a linearized approach