Gyrotactic phytoplankton in laminar and turbulent flows: A dynamical systems approach