Potential of ozone formation by the smog mechanism to shield the surface of the early Earth from UV radiation