Magnetic properties of ternary sodium oxides NaLnO2 (Ln=rare earths)