Electromagnetically driven solitons in inhomogeneous overdense plasma