Stability, reconstruction, and electronic properties of diamond (100) and (111) surfaces.