Quantum size effect in electron transmission through Cu and Ag films on W(110)