Preparation and characterization of metal oxide nanocrystals and thin films for their possible applications in various devices