Modelling the metal–semiconductor band structure in implanted ohmic contacts to GaN and SiC