First variation of anysotropic energies and crystalline mean curvature for partitions