Implementation of Crank–Nicolson scheme in cell dynamics simulation for diblock copolymers