Effect of the polymer-substrate interactions on crystal nucleation of polymers grafted on a flat solid substrate as studied by molecular simulations