Analysis of Plane Strain Cold Rolling Using a Flow Function and the Weighted Residuals Method