Grizzlies waive Gasol, finalize trade with Celtics