Modelling frazil ice and grease ice formation in the upper layers of the ocean