Onset of breaking in front of vertical and composite breakwaters