Solubility rules for ionic compounds