Electronic and geometric structure of Si(111)-(7 × 7) and Si(001) surfaces