Complexes of curves and Teichmüller spaces