Scale determination using the static potential with two dynamical quark flavors