(d) If the court determines that a person convicted of a stalking crime under this section owns or possesses a firearm and used it in any way during the commission of the crime, it shall order that the firearm be summarily forfeited under section 609.5316, subdivision 3.