Dependence of the Magnetic Properties of Y3Fe5−xGaxO12 and Y3Fe5−xAlxO12 on Thermal History