Classification of carious lesions in primary and permanent teeth