Superintegrable deformations of the KC and HO potentials on curved spaces