Optical properties of ultrathin GaAs layers embedded in AlxGa1-xAs