Intramuscular EMG classifier for detecting myopathy and neuropathy