Polymerase chain reaction with phase change as intrinsic thermal control