Relationship between EDM parameters and surface crack formation