Computing genus 2 curves from invariants on the Hilbert moduli space