Generation and transfer of entangled states between two connected microtoroidal cavities: Analysis of different types of coupling