resultant amplitude of two waves calculator