ONGC Q2 net profit up 3.1 per cent