Extraction of n = 0 pick-up by locked mode detectors based on neural networks in J-TEXT