Theory of Solutions in Energy Representation in NPT-ensemble: Derivation Details