Automatic optimization design of the in-focus varied line space plane-grating monochromator beamline for soft X-ray applications | Synapse