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