Distributed power consensus algorithm in DC microgrids