The formation of binary asteroids as outcomes of catastrophic collisions