Process for preparation of intermediates of carbocyclic nucleoside analogs