A modified Crank—Nicolson technique with non-equidistant space steps