Shock-wave geometry with nonvanishing cosmological constant