Investigation of pitting corrosion of carbon steel in sweet and sour oilfield corrosion conditions: a parametric study