Energy loss and straggling measurements of ions in solid absorbers