A gradient flow approach to the porous medium equation with fractional pressure