Spain to closely work with Pakistan on Afghan peace, region’s future