X-ray study of chitosan-transition metal complexes