Analysis of Liquid and Structural Transients in Piping by the Method of Characteristics