Consensus-based Approach for the Economic Dispatch Problem