Modeling dispersion interactions in flexible metal-organic frameworks: critical influence on phase stability