A Minimum Energy Fit Method to Reconstruct Photospheric Velocity and Magnetic Diffusivity in Active Regions from Observed Magnetograms and Dopplergrams