The influences of preparation parameters on NiO thin film properties for gas-sensing application