High linearity silicon carbide detectors for medical applications