A characterization of energetic and BV solutions to one-dimensional rate-independent systems