Self-powered pendulum and micro-force active sensors based on a ZnS nanogenerator