Correction of dopant concentration fluctuation effects in silicon drift detectors