The erosion of planetary and satellite atmospheres by energetic atomic particles