Energy loss and energy loss straggling of N, Ne, and Ar ions in thin targets