Large transverse momentum π0 production in proton-proton, deuteron-proton and deuteron-deuteron collisions at the CERN ISR