Mahler measure of polynomials defining genus 2 and 3 curves.