Laser wavelength monitoring and characterization for tunable lasers/LEDs