First-principles spectra of Au nanoparticles: from quantum to classical absorption