How was the gravitational constant derived?