Holography and the generalized second law of thermodynamics in (2+1)-dimensional cosmology