A survey on blockchain‐enabled smart grids: Advances, applications and challenges