Computational tools for the analysis of mechanical functionality of gastrointestinal structures