Potfit: effective potentials from ab initio data