Process for preparing alkylsulphonyl chlorides and arylalkylsulphonyl chlorides