On the mechanism of the formation of tetrahydrofurans from 1,4-diols mediated by triphenylphosphine and N-bromosuccinimide