Modeling of electron cyclotron current drive in a tokamak with internal transport barrier