A theoretical study of the stability and electronic structure of the polar 111 face of MgO