High-speed module for wavelength encoding in ATM optical switching