Periodic orbits of the planar anisotropic Manev problem and of the perturbed hydrogen atom problem