Integrated optical devices for free-space optical communications