Atomistic Model Potential for PbTiO3 and PMN by Fitting First Principles Results