Potential energy of interaction for two magnetic pucks