Quantum-size effects on Tc in superconducting nanofilms