Number on the Forehead Protocols yielding dense Ruzsa–Szemerédi graphs and hypergraphs