Design study of time-preserving grating monochromators for ultrashort pulses in the extreme-ultraviolet and soft X-rays