Sub-breaking waves and critical condition for their appearance