Effect of two bands on critical fields in MgB2 thin films with various resistivity values