Connected‐diagram expansions of effective Hamiltonians in incomplete model spaces. II. The general incomplete model space