On the interaction of continuous wave and pulsed lasers with surface adsorbed molecules: general theory and N2 on graphite