Theoretical studies of Si and GaAs surfaces and initial steps in the oxidation