Structural basis for the selectivity of the external thioesterase of the surfactin synthetase