Theory and practice of commonly used techniques for characterization of crystal structure, microstructure and chemistry