Strategy for calibrating the non-linear gain of the DSSC detector for the European XFEL