Text this: Quantum mechanical calculation of the optical absorption of silver and gold nanoparticles by density functional theory