A Nelder–Mead algorithm-based inverse transient analysis for leak detection and sizing in a single pipe