Modeling of gelatin complexation for biomedical hydrogelation