Robust self-testing of two-qubit states