Pfaffians and the inverse problem for collinear central configurations