Spectral determinants for twist field correlators