Optimal Electric Field Estimation and Control for Coronagraphy