Temperature, resources, and phytoplankton size structure in the ocean