The optical development and calibration of the Galway Astronomical Stokes Polarimeter (GASP) as a multi-detector system for the polarimetric observations of variable optical sources