A Measurement of the B0anti-B0 Oscillation Frequency and Determination of Flavor-Tagging Efficiency Using Semileptonic and Hadronic B0 Decays