Method and system structural analysis of an object by measuring wavefront