Nanogenerator for determination of acoustic power in ultrasonic reactors