Calculating gravitationally self-consistent sea level changes driven by dynamic topography