A fast and general method to empirically estimate the complexity of brain responses to transcranial and intracranial stimulations