Search for lepton flavour violating decays of heavy resonances and quantum black holes to an e mu pair in proton-proton collisions at sqrt(s) = 8 TeV