Steven Adams agrees to extension with Grizzlies