δ-invariants and their applications to centroaffine geometry