Raman spectroscopy characterization of anharmonicity and alloying effects in semiconductor materials