Structural analysis of carbonaceous solids using an adapted reverse Monte Carlo algorithm