derive the expression of output analog voltage for a weighted resistor DAC with the help of a circuit diagram ?