What are the two types of electrical discharge machines and their applications?