Unconventional optical Tamm states in metal-terminated three-dimensional photonic crystals