the factors that affects the gravitational force between two objects are