Materials identification and analysis