A 40 Mhz pipelined trigger for K0->2pi0 decays for the CERN NA48 experiment