SET and RESET pulse characterization in BJT-selected phase-change memories