Corona charging of photothermoplastic devices in optical switching applications