A multi-channel trigger and acquisition board for TDC-based readout: Application to the cosmic rays detector of the PolarQuEEEst 2018 project