Coherent diffractive imaging methods for semiconductor manufacturing