Transient electric signals prior to rock failure under uniaxial compression