Necessary and Sufficient Conditions for State-Space Network Realization