Search for anomalous production of prompt same-sign lepton pairs and pair-produced doubly charged Higgs bosons with s =8 TeV pp collisions using the ATLAS detector