Behavior of ultrathin layers of Co on Si and Ge systems