Text this: On computing the solubility of molecular systems subject to constraints using the extended Einstein crystal method