Text this: General electromagnetic density of modes for a one-dimensional photonic crystal