Nonlinear plasma evolution and sustainment in the reversed field pinch