Gluon fragmentation into $B_c^{(*)}$ in NRQCD factorization