Bakersfield man convicted of domestic violence sentenced for owning gun