The mechanism of Fries rearrangement and acylation reaction in polyphosphoric acid