Detection of changes in temperature extremes during the second half of the 20th century