Anisotropic stellar compact spheres in f(R) gravity via Karmarkar approach