A pendulum-based nanogenerator for high-entropy wave energy harvesting