Does superposition of waves require the two waves to have the same speed and frequency?