Deterministic modeling of the transmission dynamics of intramammary infections