Sainsbury's, the UK's third-largest grocer, saw its sales growth accelerate in its second quarter as it "outperformed" its competitors.