In situ x-ray study of the formation of defects in Ge islands on Si(001)