The moduli of curves of genus 6 and K3 surfaces