Formulating wave overtopping at vertical and sloping structures with shallow foreshores using deep-water wave characteristics