URJA: A sustainable energy distribution and trade model for smart grids