@thendrix I think you would need to be around 6ft under the surface with a conductive and well grounded shell. The air gap between the inner and outer structure would need to be calculated. Operation and maintenance would be more troublesome than implementation.
The biggest issue with an EMP is really the miles of electrical infrastructure delivering the fatal blow to electronics. It's possible that a basement could work as long as the power supply isn't connected to mains.