Using phylogenetic models to characterise natural selection from molecular data