Transparent conducting p-type NiO thin films prepared by magnetron sputtering