Veritex agrees to acquire minority stake in Thrive Mortgage