Man arrested in brutal California attacks, rape on trail