Rubber elasticity: Thermodynamic properties of deformed networks