Search for decays of stopped long-lived particles produced in proton-proton collisions at sqrt(s) = 8 TeV