Controllable Goos–Hänchen shift and optical switching in an Er3 + -doped yttrium aluminum garnet crystal. (19th March 2021)