Energy Loss of Electrons in Passage Through Thin Films