Analysis of terrestrial and Martian volcanic compositions using thermal emission spectroscopy