The topology of Calabi-Yau threefolds