Automatic procedure for stable tetragonal or hexagonal structures: application to tetragonal Y and Cd P. M. Marcus and F. Jona Eur. Phys. J. B, 45 1 (2005) 39-46 Published online: 16 June 2005 DOI: 10.1140/epjb/e2005-00162-y