Effect of surface curvature on magnetic moment and persistent currents in two-dimensional quantum rings and dots