Skewness of generalized Petersen graphs and related graphs