4f-surface binding energy shift for Eu and Gd metals