Topological amplitudes in string theory