Numerical and Machine Solutions of Transient Heat-Conduction Problems Involving Melting or Freezing: Part I—Method of Analysis and Sample Solutions