Surgery obstructions and Heegaard Floer homology