Kaepernick efficient in 49ers 23-13 win over Rams