Simulated epidemics in 3D protein structures to detect functional properties