YPF posts record Q2 profit as shale output hits 213,000 bpd