Improved measurements of the branching fractions for B0 → π+π− and B0 → K+π−, and a search for B0 → K+K−