Numerical calculation method for the optimum wave energy absorption configuration based on the variation of Kochin function