Stable numerical methods of solving certain inverse problems of vibrational spectroscopy