Electrical properties of diamond nanostructures