Excess current in contacts based on magnesium diboride