Representing the function and sensitivity of coastal interfaces in Earth system models