Molecular hydrogen confined within nanoporous framework materials: Comparison of density functional and classical force-field descriptions