Finite element solution of nonlinear heat conduction problems with special reference to phase change