Quantum elecrodynamics near material boundaries