The mechanism of the Dakin-West reaction