Statistics for Characterizing the lithiation and failure mechanisms of transition metal phosphates and phosphides for lithium ion batteries