Ion beam analysis of rough thin films