Space-curvature effects in atomic fine- and hyperfine-structure calculations