SAXS and WAXS analysis of MgO doped ZnO nanostructured ceramics grown on Si and glass substrate