Characterization of the structure of carbon material through the sp3/sp2 bonding ratio measurements