Self-testing quantum states via nonmaximal violation in Hardy's test of nonlocality | Synapse