The problem seems to be bad soldering connections in your equipment.
I don't see how this is caused by the building electricity.
You are probably blaming the electricity for defects in the equipment.
Cracked input jack, bad soldering connections, bad patch cords, etc...
No matter HOW you arrange the order of the equipment, etc...the problem will not stop until you have your equipment serviced.
WELL you may have a POP when an appliance comes on, but that does not explain the other symptoms.