An ab initio study of the monoxides and dioxides of sodium