Electronic properties of diamond surfaces