A necessary and sufficient condition for uniqueness consistency in the stable marriage matching problem