A mechanism for surface flashover of semiconductors