Process monitoring of electrochemical micromachining