How does magnetic force affect the energy in a system of magnets when the magnets are released and begin to move?.