A precise determination of the top-quark pole mass