Electronic and Optical Properties of Nitrogen‐Doped Layered Manganese Oxides