On the Heegaard Floer homology of Dehn surgery and unknotting number