Theoretical approaches to x-ray absorption fine structure