InP-based spotsize converter for integration with switching devices