Analytical expressions for the longitudinal magnetoresistance of thin polycrystalline films