The Lα line profile and the spin temperature of hydrogen in the intergalactic medium