Reconstruction of Scalar Potentials in Modified Gravity Models