Optical properties of solid state emitters in structured environments