On the invariance of the set of stable matchings with respect to substitutable preference profiles