Electrical and nonlinear optical properties of KTiOPO4 single crystals doped by Nb or Sb