Improved nonrelativistic QCD for heavy quark physics