Mathematical energy minimization model for joining boron nitride fullerene with several BN nanostructures