Correlation of the peak pressure generated by an underwater spark discharge with energy absorption in a spark channel