An analytical model to calculate the current–voltage characteristics of AlGaN/GaN HEMTs