Synthesis of Six- and Seven-Membered Chloromethyl-Substituted Heterocycles via Palladium-Catalyzed Amino- and Oxychlorination