A Variational Approach to Adaptive Correlation for Motion Estimation in Particle Image Velocimetry