Leak Localization in Looped Pipe Networks Based on a Factorized Transient Wave Model: Theoretical Framework