Timeless paths in spacetime, Einstein's unified field theory, Sommerfeld's quantum conditions and the Lamb shift