A model algebraic Hamiltonian for interacting nonequivalent local modes with application to HCCD and H12C13CD