Maxwell’s Demon in Photonic Systems