Integrated Simulation of Power and Communication Networks for Smart Grid Applications