The balance between prokaryotic autotrophy and heterotrophy in the oceans