Reducing the sensitivity of the water quality index to episodic events