Magnetic and optical properties of manganese doped ZnO nanoparticles synthesized by sol–gel technique