Detecting Discontinuities from in-Situ Space Measurements: Method and FPGA Implementation