Demonstration of flexible optical time-division multiplexing system for high-speed free-space optical communications