Microstructure, optical, and electrical properties of p-type SnO thin films