Financial crises follow one pattern for three centuries