Anomalous electron absorption effects in metal foils: theory and comparison with experiment