Extraplanar H II regions in spiral galaxies. I. low-metallicity gas accreting through the disk-halo interface of NGC 4013