Biden, Palin trade barbs in wide-ranging debate