Efficient and reliable detection of nonlocal quantum correlations in continuous-variable and hybrid states via random measurements