FEFF calculation