Accretion-ejection instability and QPO in black-hole binaries - II. Relativistic effects