Molecular dynamics simulation of the electrical double layer in ionic liquids