Gramian based model reduction of switched dynamical systems