New Approach to Measure Centrality in the HADES Heavy-Ion Experiments