Cofactor-dependent enzyme catalysis in functionalized ionic solvents.