Optimization of pendulum-based wave energy converter through mathematical approximation