QM/MM connection atoms for the multistate treatment of organic and biological molecules