Probing the Effect of Molecular Nonuniformity in Directed Self-Assembly of Diblock Copolymers in Nanoconfined Space