A general model for compensating remainder dynamic environment effect on marine and airborne gravimetry