Leak detection in pipes by frequency response method using a step excitation