Adaptive On-Line Frequency Stabilization System for Laser Diodes Based on Genetic Algorithm