From quantum to continuum mechanics in the delamination of atomically-thin layers from substrates