XAS study of transition metal ions in hydrotalcite-like compounds