Demography and the composition of taxes