Recovery Schemes for Primitive Variables in General-relativistic Magnetohydrodynamics