Modular decomposition of metabolic systems via null space analysis