On the magnetic ordering in β phase and α-β phase transition in solid oxygen