Investigating the functional morphology, locomotor diversification, and paleoecology of Mesozoic mammals