Preparation and characterization of selenium based nanocrystalline thin films for solar cell application