On the preferential acceleration and heating of solar wind heavy ions