Studies of density and surface roughness of ultrathin amorphous carbon films with regards to thickness with x-ray reflectometry and spectroscopic ellipsometry