Shapes of strong shock fronts in an inhomogeneous solar wind