Measurement of differential cross sections of isolated-photon plus heavy-flavour jet production in pp collisions at root s = 8 TeV using the ATLAS detector