Low-loss and compact phased array demultiplexer using a double etch process