Flow around stationary and oscillating polygonal cylinders