Nodal sets of magnetic Schroedinger operators of Aharonov-Bohm type and energy minimizing partitions