TEM investigation of the dependence of structural defects on prelayer formation in GaAs-on-Si thin films