generating ligand charges