Detection of echoes in noisy environments for multilayer structure characterization