Extracting the complex energy of broad resonances by the S-matrix pole method