Spatial multiplexing in optical communications