Heat blow 18-point lead but rally to get past Celtics