Application of the Variational Iteration Method for Determining the Temperature in the Heterogeneous Casting-Mould System