Theoretical study of electronic and atomic structures of (MnO)n