The Heat-Balance Integral and Its Application to Problems Involving a Change of Phase