GRB 051103 and GRB 070201 as Giant Flares from SGRs in Nearby Galaxies