A Generalization of the Hopf-Cole Transformation