Faint light from dark matter: classifying and constraining dark matter-photon effective operators