GAP OPENING IN ULTRATHIN SI LAYERS - ROLE OF CONFINED AND INTERFACE STATES