Formation of binary millisecond pulsars by accretion-induced collapse of white dwarfs