High-resolution lamb dip spectroscopy on OD and SiCl in a molecular beam