SMILES, a Chemical Language and Information System. 1. Introduction to Methodology