If it is found beyond a reasonable doubt that the offense was committed by reason of (a) the actual or perceived race, color, ancestry, ethnicity, religion, national origin or gender of the victim, or (b) the victim's actual or perceived employment as a law enforcement officer, firefighter or emergency medical technician, then the penalty for the offense may be enhanced by punishment for a term of imprisonment of up to twice that authorized by law for the offense committed, or a fine of up to twice that authorized by law for the offense committed, or both.