The electron-pairing mechanism of iron-based superconductors