US stocks close Thursday sharply higher