Electrical and optical characterizations of (001)-oriented homoepitaxial diamond p–n junction