Quantum size effects in thermodynamic superconducting properties of ultrathin films