Ion beam mixing of metallic and insulating layers on SiC and Si3N4