Quasi-cyclic codes as cyclic codes over a family of local rings