Title: Adaptive control of EDM-wire cutting based on real time pulse analysis