Electrostatic Interaction of Point Charges in an Inhomogeneous Medium