Thermal production of gravitinos