The Size-Frequency Distribution of Impact Craters in the Inner Solar System and Implications for Past and Recent Cratering Rates in the Earth-Moon System