Why some fruits are green when they are ripe: carbon balance in fleshy fruits