Electric field gradient effects on the spectroscopy of adsorbed molecules