Anharmonicity Study of Semiconductors and Metallic Nanotubes by Inelastic Spectroscopy