Diabatization by localization in the framework of configuration interaction based on floating occupation molecular orbitals (FOMO-CI).