Exact solution to the inverse Womersley problem for pulsatile flows in cylindrical vessels, with application to magnetic particle targeting