For first time in 40 years, Spanish king visits Baghdad