Growth optimization and structural analysis for ferromagnetic Mn-doped ZnO layers deposited by radio frequency magnetron sputtering