Lincecum sharp in Giants 2-1 win over Padres