Characterization of rock populations on planetary surfaces: Techniques and a preliminary analysis of Mars and Venus