SURF: Joint Structural Functional Attack on Logic Locking