A neural controller for the determination of the frequency difference between laser sources