Relationship between composition and structure in chitosan-based hybrid films.