Effective Hamiltonian for fluid interfaces