Simulation of a low voltage customer microgrid using petri nets