Recovering the potential term in a fractional diffusion equation