Distributed Dynamic Consensus Algorithm for Attitude Estimation