Synthesis of precision AC waveforms using a SINIS Josephson junction array