Comparative study of changes in electrical properties of silicon and silicon carbide upon proton irradiation