Theoretical principles and computational design of two-photon absorbing photochromic chromophores