Sulfonation and chlorosulfonation of organic compounds