Ab initio investigations of the intrinsic optical properties of germanium and silicon nanocrystals