Investigation of a system with a tunable anharmonic interaction potential using paramagnetic colloids