Electrochemical synthesis of p-CuO thin films and development of a p-CuO/n-ZnO heterojunction and its application as a selective gas sensor