Structure of electric double layers: A self-consistent weighted-density-functional approach