1D@0D hybrid dimensional heterojunction-based photonics logical gate and isolator