Gate region of field-effect devices with PN junction gate