A coupled‐cluster based effective Hamiltonian method for dynamic electric polarizabilities