Emergence of steady and oscillatory localized structures in a phytoplankton–nutrient model