The phase dependent properties of gain and absorption in an Er3+-doped yttrium aluminum garnet crystal