Mode demultiplexing based on a three-armed grating coupler