A chemical method for the preparation of thin films of CdO and ZnO