Lattice properties, energy states and optical spectra of MnxGa1−xAs magnetic semiconductors