Deviation inequalities for eigenvalues of deformed random matrices