X-ray absorption fine structure study of manganese compounds