Improved measurements of the branching fractions for B0 -> pi+ pi- and B0 -> K+ pi-, and a search for B0 -> K+ K-