How are the carbon cycle and nitrogen cycle similar?