A pair of black boxes has been recovered from the American Airlines jet involved in a mid-air collision with a military helicopter, which left no survivors.