Pd immobilized on magnetic chitosan as a heterogeneous catalyst for acetalization and hydrogenation reactions