Phantom materials for photons and electrons