Combined analysis of the ultrahigh-energy cosmic-ray mass composition and hadronic interaction cross-sections