The electrochemically induced Hofmann rearrangement and its comparison with the classic Hofmann rearrangement