Foxconn announces it will buy downtown building for North American headquarters