Converts atoms to SMILES code