Solitons with Cubic and Quintic Nonlinearities Modulated in the Space and Time