Distributed Consensus-based Economic Dispatch for Micro-grid with Transmission Losses