Using data to attribute episodes of warming and cooling in instrumental records