A chemical method for preparation of metal sulfide thin films