Obama endorses Biden, saying former vice president has 'the qualities we need'