Perimetric coordinates for four particles