Text this: Two-step inexact Newton-like method for solving generalized inverse eigenvalue problems