Integrated phontonics chip