Extraplanar H II regions in spiral galaxies. II. In situ star formation in the interstellar thick disk of NGC 4013