Accurate measurement of the Newtonian constant of gravity using atom interferometry