Relation between charge and force parameters of closed-shell atoms and ions