design and construction of a peak detector circuit pdf