Functional adaptation of crustacean exoskeletal elements through structural and compositional diversity: a combined experimental and theoretical study