The opacity of the Galactic disc derived with planetary nebulae