Formation of multiwall fullerenes from nanodiamonds studied by atomistic simulations