Functional relations in nineteen-vertex models with domain-wall boundaries