How do the relative positions of the moon and Earth impact tides?