Superintegrable Potentials on 3D Riemannian and Lorentzian Spaces with Nonconstant Curvature RID B-5702-2011 RID F-2453-2010