2012 hottest year on record, federal agency says