Nanostructure and optical properties of M doped ZnO (M=Ni, Mn) thin films prepared by sol–gel process