The power of waves in shallow waters