Perturbation theory for a Dirac particle in a central field: Inclusion of the anomalous-magnetic-moment term