Oil and gas companies 'agree to pay 5% surtax'