The diameter estimate and its application to CR Obata’s Theorem on closed pseudohermitian (2+1)-manifolds