A practical method for design of coastal structures in shallow water