Generalized early warning signals in multivariate and gridded data with an application to tropical cyclones