Length gauge theory for surface SHG