On the temperature of alpha particles and heavy ions in the solar wind