CSUB head coach Rivera resigns