Fractional instantons in 2d CP^N-1 model and 4d Yang-Mills theory with 't Hooft twists | Synapse