Study of electronic and magnetic properties of MnAg layers