Functional morphology of the invertebrate skeleton