New magnetic states in nanorings created by anisotropy gradients