The paleobiology and phylogenetic position of Archaeopteryx