A comparative study of GaN epilayers grown on sapphire and SiC substrates by plasma‐assisted molecular‐beam epitaxy