X-ray absorption spectroscopy with an X-ray free electron laser : nonlinear and ultrafast effects in solids