A neural system for frequency control of tunable laser sources