Application of ion beam analysis to the selective sublimation processing of thin films for gas sensing