Cosmetic surgeries on knots in homology spheres and the Casson--Walker invariant | Synapse