Nonlinear curve fit of data to mathematical model \(V(\theta)=V_0\cos^2(\theta-\theta_0)+V_1\)