Applications of synchrotron radiation x-ray techniques on the analysis of the behavior of transition metals in solar cells and single crystalline silicon with extended defects