Angular straggling of heavy and light ions in thin solid foils