Superconducting nanofilms: Andreev-type states induced by quantum confinement