Classification of nuclear isomers