Secondary electron emission from the entrance and exit surfaces of thin carbon foils under fast ion bombardment