Automatic rule-based modeling of metabolism, protein-protein interactions, and regulation of gene expression