An Optical Method for Measuring the Distribution of Velocity Gradients in a Two‐Dimensional Flow