Linear and cyclic codes over direct product of finite chain rings