Breit-Pauli energy levels and transition rates for nitrogen-like and oxygen-like sequences