Analysis of energy distributions for molecular and cluster secondary ions