Optimized design of multiport optical circulator