Evolution of black-hole intermediate-mass X-ray binaries