Novel Finite Element Method for Solving One-Dimensional Phase Change Problems