Large eddy simulation of flow past stationary and oscillating square cylinders