Characterization of solids by Mössbauer spectroscopy