Duality and gauge invariance of noncommutative spacetime Podolsky electromagnetic theory