First-principles evaluation of penetration energy of metal atom into Si substrate