Exact solution of the totally asymmetric simple exclusion process: Shock profiles