The wave height variation for regular waves in shoaling water