Algebraic criteria for consensus problems of continuous-time networked systems