Crystal Structure Prediction with a Geometric Permutation-Invariant Loss Function