Functional assessment of morphological homoplasy in stem-gnathostomes