Determination of hydrocarbon impurity influxes, photon efficiencies and chemical sputtering yield in ASDEX upgrade