Optimal design of calibration signals in space-borne gravitational wave detectors