Equations of $(1,d)$-polarized abelian surfaces