Network service chaining using segment routing in multi-layer networks