Molecular impurities in ASDEX UPGRADE plasma discharges