Analysis of microlayer defects of a functionally graded titanium alloy by electrical discharge machining