What two factors affect the strength of gravity?