The discriminating power of wavelets to detect non-Gaussianity in the cosmic microwave background