Chemical Changes in Layered Ferroelectric Semiconductors Induced by Helium Ion Beam