External Stimuli Driven Transformation of BN-Heterocycles