Magnetic flux conversion and relaxation toward a minimum‐energy state in spheromak plasmas