Effect of Ambient Gas On Cavity Formation For Sphere Impacts On Liquids