Exact solution of the Riemann problem for a power-law channel section