Sudan and South Sudan reach ‘understanding’ over oil