Direct reconstruction of the quintessence potential