A new method for machinery fault diagnoses based on an optimal multiscale morphological filter