Gravar-mail: K-core robustness in ecological and financial networks