Text this: Generalization of ANN model in classifying stance and swing phases of gait using EMG signals