Interaction of functional groups of gelatin and montmorillonite in nanocomposite