Effects of hydration on the conformational behaviour of flexible molecules with two charge centres