Characterization of escape times of Josephson junctions for signal detection