Shock waves, rarefaction waves, and nonequilibrium steady states in quantum critical systems.