In situ synthesis of ferrites in ionic and neutral cellulose gels