Homological Dimension of Coalgebras and Crossed Coproducts