Duality of matrix pencils and linearizations