Resonant Lifetime of Core-Excited Organic Adsorbates from First Principles