Searching for prompt signatures of nearby core-collapse supernovae by a joint analysis of neutrino and gravitational wave data