Modelling a silicon photomultiplier (SiPM) as a signal source for optimum front-end design