Investigation on structural, linear, nonlinear and optical limiting properties of sol-gel derived nanocrystalline Mg doped ZnO thin films for optoelectronic applications