Static and transient electrical properties of (111) diamond p–n diodes