Electrical characterization of diodes based on regioregular poly(3-hexylthiophene)