The extinction and dust-to-gas structure of the planetary nebula NGC 7009 observed with MUSE