Resolution of silicon drift detectors with sampled waveform method