A self-powered smart wave energy converter for sustainable sea