Spatial solitons in linearly and nonlinearly amplitude-modulated optical lattices