Probabilistic Phase Labeling and Lattice Refinement for Autonomous Material Research