Transition from Attractive to Repulsive Forces between Dust Molecules in a Plasma Sheath