Onset of convection in a horizontal water layer with maximum density effects