BlackBerry sells about 1 million Z10s in move to profit