Distributed Control of Wireless Power Transfer Subject to Safety Constraints