Defects and separation of amorphous nanofilms from crystalline substrates