An impact model of Newton’s law of gravitation