Measurement of Branching Fractions and Resonance Contributions for B0→D¯0K+π- and Search for B0→D0K+π- Decays