Correlation between structure variation and luminescence red shift in YAG:Ce