Recent advances in optoelectronic and microelectronic devices based on ultrawide-bandgap semiconductors