Invariant embedding approach to secondary electron emission from metals