Thermodynamic identities and particle number fluctuations in weakly interacting Bose-Einstein condensates