Physical and biological controls of vertical gradients in phytoplankton