An algebraic-analytic model for the characterization of the frequency domain of photodiodes