Heegaard Floer homology and L-space knots