Nanogenerator-Based Self-Powered Sensors for Wearable and Implantable Electronics