Žiadanka emailom: Generalization of the n-k influence function to predict mining subsidence