Morphospaces of functionally analogous traits show ecological separation between birds and pterosaurs