How is gravity affected by mass and radius?