Dynamics of entanglement and population inversion of two qubits in a hybrid nonlinear system