A harmonic development of the tide-generating potential