On the construction of composite Wannier functions