Quality metrology of carbon nanotube thin films and its application for carbon nanotube-based electronics