A theoretical framework for narrative explanation in science